package com.woniuxy.pxxt.entity;

import com.woniuxy.pxxt.dto.menu.MenuDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 用户表(User)实体类
 *
 * @author makejava
 * @since 2022-03-07 13:18:05
 */
@ApiModel(description = "用户类")
@Data
public class User extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 295240785488729608L;

    @ApiModelProperty(value = "用户表id")
    private Integer id;

    @ApiModelProperty(value = "用户的名字")
    private String name;

    @ApiModelProperty(value = "用户名")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "判断账户是否可用")
    private Integer status;

    @ApiModelProperty(value = "部门id")
    private Integer departmentId;


    @ApiModelProperty(value = "对应部门")
    private Department department;

    @ApiModelProperty(value = "对应角色")
    private Role role;

    @ApiModelProperty(value = "对应的状态")
    private UserScore userScore;

    @ApiModelProperty(value = "token")
    private String  token;

    @ApiModelProperty(value = "验证码Token")
    private String  codeToken;

    @ApiModelProperty(value = "验证码")
    private String  code;

    @ApiModelProperty(value = "用户的角色")
    private List<Role> roles;

    @ApiModelProperty(value = "用户的菜单权限")
    private List<Menu> menus;

    @ApiModelProperty(value = "用户的菜单权限")
    private List<MenuDto> menuDtos;


    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    @ApiModelProperty(value = "角色名字")
    private String roleName;
}

